﻿import request from '/@/utils/request';
enum Api {
  AddMaintenanceCostModels = '/api/maintenanceCostModels/add',
  DeleteMaintenanceCostModels = '/api/maintenanceCostModels/delete',
  UpdateMaintenanceCostModels = '/api/maintenanceCostModels/update',
  PageMaintenanceCostModels = '/api/maintenanceCostModels/page',
  DetailMaintenanceCostModels = '/api/maintenanceCostModels/detail',
}

// 增加养护方案费用模型
export const addMaintenanceCostModels = (params?: any) =>
	request({
		url: Api.AddMaintenanceCostModels,
		method: 'post',
		data: params,
	});

// 删除养护方案费用模型
export const deleteMaintenanceCostModels = (params?: any) => 
	request({
			url: Api.DeleteMaintenanceCostModels,
			method: 'post',
			data: params,
		});

// 编辑养护方案费用模型
export const updateMaintenanceCostModels = (params?: any) => 
	request({
			url: Api.UpdateMaintenanceCostModels,
			method: 'post',
			data: params,
		});

// 分页查询养护方案费用模型
export const pageMaintenanceCostModels = (params?: any) => 
	request({
			url: Api.PageMaintenanceCostModels,
			method: 'post',
			data: params,
		});

// 详情养护方案费用模型
export const detailMaintenanceCostModels = (id: any) => 
	request({
			url: Api.DetailMaintenanceCostModels,
			method: 'get',
			data: { id },
		});


